# Maintainer: Miles Alan <m@milesalan.com>
pkgname=stw
pkgver=0.3
pkgrel=0
pkgdesc="Simple text window for X"
url="https://github.com/sineemore/stw"
arch="all"
license="MIT"
makedepends="
	libx11-dev
	libxft-dev
	libxrender-dev
	"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/sineemore/stw/archive/refs/tags/$pkgver.tar.gz"
options="!check" # no tests

build() {
	make
	make stw.1
}

package() {
	install -Dm755 stw "$pkgdir"/usr/bin/stw
	install -Dm644 ./*.1 -t $pkgdir/usr/share/man/man1/
}

sha512sums="
409171d2f99c9ac3adccf97a34d14ee312ca6d634ab32210cd5c1167be1a80757c7d29a2a760b121963d185c51343d141ea93db4f92bb7605e68b444c9e8a33f  stw-0.3.tar.gz
"
